﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Player : MonoBehaviour {

    Rigidbody rb;
    Transform tf;

    public float speed = 30.0f;

    // Use this for initialization
    void Start () {
        rb = GetComponent<Rigidbody>();
        tf = GetComponent<Transform>();
    }

    // Update is called once per frame
    void Update () {
        float horiziontal_move = Input.GetAxisRaw("Horizontal");
        float vertical_move = Input.GetAxisRaw("Vertical");
        rb.AddForce(new Vector3(horiziontal_move, 0, vertical_move).normalized*speed);
    }
}
